[INFO] cloning repository https://github.com/clicepfl/rust-workshop
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/clicepfl/rust-workshop" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fclicepfl%2Frust-workshop", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fclicepfl%2Frust-workshop'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 92a67be6923066a6a3f37657e985a9892a7c9450
[INFO] fixing clicepfl/rust-workshop against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fclicepfl%2Frust-workshop" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/clicepfl/rust-workshop
[INFO] finished tweaking git repo https://github.com/clicepfl/rust-workshop
[INFO] tweaked toml for git repo https://github.com/clicepfl/rust-workshop written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/clicepfl/rust-workshop on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/clicepfl/rust-workshop already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] e259c1e229fb3516ae835316e6c4c012f68246f86e11d2fb7b404719b87c83fb
[INFO] running `Command { std: "docker" "start" "e259c1e229fb3516ae835316e6c4c012f68246f86e11d2fb7b404719b87c83fb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e259c1e229fb3516ae835316e6c4c012f68246f86e11d2fb7b404719b87c83fb" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e259c1e229fb3516ae835316e6c4c012f68246f86e11d2fb7b404719b87c83fb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e259c1e229fb3516ae835316e6c4c012f68246f86e11d2fb7b404719b87c83fb" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]     Checking workshop v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0277]: `P` doesn't implement `std::fmt::Display`
[INFO] [stdout]   --> examples/40_generics.rs:19:20
[INFO] [stdout]    |
[INFO] [stdout] 19 |     println!("{}", value);
[INFO] [stdout]    |               --   ^^^^^ `P` cannot be formatted with the default formatter
[INFO] [stdout]    |               |
[INFO] [stdout]    |               required by this formatting parameter
[INFO] [stdout]    |
[INFO] [stdout]    = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
[INFO] [stdout]    = note: required for `&P` to implement `std::fmt::Display`
[INFO] [stdout] help: consider restricting type parameter `P` with trait `Display`
[INFO] [stdout]    |
[INFO] [stdout] 18 | fn print<P: std::fmt::Display>(value: &P) {
[INFO] [stdout]    |           +++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0369]: cannot add `T` to `T`
[INFO] [stdout]   --> examples/40_generics.rs:28:23
[INFO] [stdout]    |
[INFO] [stdout] 28 |             x: self.x + rhs.x,
[INFO] [stdout]    |                ------ ^ ----- T
[INFO] [stdout]    |                |
[INFO] [stdout]    |                T
[INFO] [stdout]    |
[INFO] [stdout] help: consider restricting type parameter `T` with trait `Add`
[INFO] [stdout]    |
[INFO] [stdout] 23 | impl<T: std::ops::Add<Output = T>> Add for Point<T> {
[INFO] [stdout]    |       +++++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0369]: cannot add `T` to `T`
[INFO] [stdout]   --> examples/40_generics.rs:29:23
[INFO] [stdout]    |
[INFO] [stdout] 29 |             y: self.y + rhs.y,
[INFO] [stdout]    |                ------ ^ ----- T
[INFO] [stdout]    |                |
[INFO] [stdout]    |                T
[INFO] [stdout]    |
[INFO] [stdout] help: consider restricting type parameter `T` with trait `Add`
[INFO] [stdout]    |
[INFO] [stdout] 23 | impl<T: std::ops::Add<Output = T>> Add for Point<T> {
[INFO] [stdout]    |       +++++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected identifier, found `,`
[INFO] [stdout]   --> examples/81_ex_smart_pointers.rs:12:20
[INFO] [stdout]    |
[INFO] [stdout] 12 |     left_child: ???,
[INFO] [stdout]    |                    ^ expected identifier
[INFO] [stdout]    |
[INFO] [stdout] help: remove this comma
[INFO] [stdout]    |
[INFO] [stdout] 12 -     left_child: ???,
[INFO] [stdout] 12 +     left_child: ???
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected a trait, found type
[INFO] [stdout]   --> examples/81_ex_smart_pointers.rs:12:19
[INFO] [stdout]    |
[INFO] [stdout]  7 |   struct Node {
[INFO] [stdout]    |          ---- while parsing this struct
[INFO] [stdout] ...
[INFO] [stdout] 12 |       left_child: ???,
[INFO] [stdout]    |  ___________________^
[INFO] [stdout] 13 | |     right_child: ???,
[INFO] [stdout]    | |_______________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected expression, found `?`
[INFO] [stdout]   --> examples/81_ex_smart_pointers.rs:34:25
[INFO] [stdout]    |
[INFO] [stdout] 32 |         Some(Self {
[INFO] [stdout]    |              ---- while parsing this struct
[INFO] [stdout] 33 |             value: my_value,
[INFO] [stdout] 34 |             left_child: ???,
[INFO] [stdout]    |                         ^ expected expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected expression, found `?`
[INFO] [stdout]   --> examples/81_ex_smart_pointers.rs:35:26
[INFO] [stdout]    |
[INFO] [stdout] 32 |         Some(Self {
[INFO] [stdout]    |              ---- while parsing this struct
[INFO] [stdout] ...
[INFO] [stdout] 35 |             right_child: ???,
[INFO] [stdout]    |                          ^ expected expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0369.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::max`
[INFO] [stdout]  --> examples/81_ex_smart_pointers.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::cmp::max;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `{integer}`
[INFO] [stdout]   --> examples/51_strings.rs:28:20
[INFO] [stdout]    |
[INFO] [stdout] 28 |     let h = &hello[0];
[INFO] [stdout]    |                    ^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `{integer}`
[INFO] [stdout]    = note: you can use `.chars().nth()` or `.bytes().nth()`
[INFO] [stdout]            for more information, see chapter 8 in The Book: <https://doc.rust-lang.org/book/ch08-02-strings.html#indexing-into-strings>
[INFO] [stdout] help: `usize` implements trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/slice/index.rs:174:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<[T]>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/bstr/traits.rs:197:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<ByteStr>`
[INFO] [stdout]    = note: required for `String` to implement `Index<{integer}>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `{integer}`
[INFO] [stdout]   --> examples/51_strings.rs:32:20
[INFO] [stdout]    |
[INFO] [stdout] 32 |     let h = &hello[0]; // "З" is actually 2 bytes
[INFO] [stdout]    |                    ^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `{integer}`
[INFO] [stdout]    = note: you can use `.chars().nth()` or `.bytes().nth()`
[INFO] [stdout]            for more information, see chapter 8 in The Book: <https://doc.rust-lang.org/book/ch08-02-strings.html#indexing-into-strings>
[INFO] [stdout] help: `usize` implements trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/slice/index.rs:174:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<[T]>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/bstr/traits.rs:197:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<ByteStr>`
[INFO] [stdout]    = note: required for `str` to implement `Index<{integer}>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `workshop` (example "40_generics") due to 3 previous errors
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `workshop` (example "51_strings") due to 2 previous errors
[INFO] [stderr] error: could not compile `workshop` (example "81_ex_smart_pointers") due to 4 previous errors; 1 warning emitted
[INFO] [stdout] error[E0505]: cannot move out of `sentence` because it is borrowed
[INFO] [stdout]   --> examples/30_drop.rs:11:10
[INFO] [stdout]    |
[INFO] [stdout]  8 |     let sentence = String::from("Hello world!");
[INFO] [stdout]    |         -------- binding `sentence` declared here
[INFO] [stdout]  9 |     let skipped = skip_first_word(&sentence);
[INFO] [stdout]    |                                   --------- borrow of `sentence` occurs here
[INFO] [stdout] 10 |
[INFO] [stdout] 11 |     drop(sentence);
[INFO] [stdout]    |          ^^^^^^^^ move out of `sentence` occurs here
[INFO] [stdout] 12 |
[INFO] [stdout] 13 |     println!("{skipped}");
[INFO] [stdout]    |                ------- borrow later used here
[INFO] [stdout]    |
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]    |
[INFO] [stdout]  9 |     let skipped = skip_first_word(&sentence.clone());
[INFO] [stdout]    |                                            ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0505`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `workshop` (example "30_drop") due to 1 previous error
[INFO] [stdout] warning: unused import: `std::rc::Rc`
[INFO] [stdout]  --> examples/80_smart_pointers.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::rc::Rc;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "e259c1e229fb3516ae835316e6c4c012f68246f86e11d2fb7b404719b87c83fb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e259c1e229fb3516ae835316e6c4c012f68246f86e11d2fb7b404719b87c83fb", kill_on_drop: false }`
[INFO] [stdout] e259c1e229fb3516ae835316e6c4c012f68246f86e11d2fb7b404719b87c83fb
